package com.fty.baymax.jooq.domain;

import java.time.LocalDateTime;
import java.util.Set;

/**
 * 司机实体
 * <p>
 * @developer Create by <a href="mailto:110686@ycgwl.com">dingxf</a> at 2018/11/30 0030
 */

public class Driver extends Model {

    private Long identify; // 司机标识-------与用户有对应关系
    private String name; // 真实姓名-------司机的姓名，中文，不能为空
    private String phone; //手机号码-------11位数字，不能为空，手机号校验规则为。。。
    private LocalDateTime registerTime; // 注册时间-------系统自动记录当前时间

    private Set<DriverCar>  cars;
    private Set<DriverRoute>  routes;

    public Driver() { }

    public Long getIdentify() {
        return identify;
    }

    public void setIdentify(Long identify) {
        this.identify = identify;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public LocalDateTime getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(LocalDateTime registerTime) {
        this.registerTime = registerTime;
    }

    public Set<DriverCar> getCars() {
        return cars;
    }

    public void setCars(Set<DriverCar> cars) {
        this.cars = cars;
    }

    public Set<DriverRoute> getRoutes() {
        return routes;
    }

    public void setRoutes(Set<DriverRoute> routes) {
        this.routes = routes;
    }
}
